<div class="pub-body">
        <!-- <h1>公司管理</h1> -->
        <!-- 公司列表 -->
        <div class="project">
            <el-button icon="el-icon-plus" class="addBtn" type="primary" @click="dialogCompanyOpen">领用公司</el-button>
            <el-table :data="companyData" border style="width: 100%" :header-cell-style="{background:'#eef1f6',color:'#606266'}">
                <el-table-column prop="companyName" label="公司名称" width="200"></el-table-column>
                <el-table-column prop="companyContact" label="联系人" width="200"></el-table-column>
                <el-table-column prop="companyTel" label="联系方式"></el-table-column>
                <el-table-column prop="requisitionLimit" label="领用限额"></el-table-column>
                <el-table-column prop="restrictedType" label="领用类型限定"></el-table-column>
                <el-table-column prop="repairAssetType"  label="维修资产类型"></el-table-column>
                <el-table-column fixed="right" label="操作" width="280">
                    <template slot-scope="scope">
                        <el-button @click="dialogCompanyOpen(scope.row)" type="primary" icon="el-icon-tickets" size="small">维修公司</el-button>
                        <el-button @click="delCompany(scope.row)" type="danger" icon="el-icon-circle-close" size="small">删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </div>

        <!-- 资产信息弹窗 -->
        <el-dialog width="1000px" :title="dialogCompany.title" :visible.sync="dialogCompany.status">
            <el-form ref="companyFrom" :rules="companyRules" :model="companyFrom" label-width="160px">
                <el-row>
                    <el-col :span="12">
                        <el-form-item prop="companyName" label="公司名称">
                            <el-input style="width: 300px;" placeholder="请输入公司名称" v-model="companyFrom.companyName"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item prop="companyContact" label="联系人">
                            <el-input style="width: 300px;" placeholder="请输入联系人" v-model="companyFrom.companyContact"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item prop="companyTel" label="联系方式">
                            <el-input style="width: 300px;" placeholder="请输入联系方式" v-model="companyFrom.companyTel"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item prop="requisitionLimit" label="领用限额">
                            <el-input style="width: 300px;" placeholder="请输入领用限额" v-model="companyFrom.requisitionLimit"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item prop="restrictedType" label="领用类型限定">
                            <el-input style="width: 300px;" placeholder="请输入领用类型限定" v-model="companyFrom.restrictedType"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item prop="repairAssetType" label="维修资产类型">
                                <el-input style="width: 300px;" placeholder="请输入维修资产类型" v-model="companyFrom.repairAssetType"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-form-item>
                    <el-button type="primary" @click="addCompany('companyFrom')"><span v-text="dialogCompany.title"></span></el-button>
                    <el-button @click="resetCompany">重置</el-button>
                </el-form-item>
            </el-form>
        </el-dialog>
    </div>
